package com.itheima.health.controller;

import com.itheima.health.common.PageParam;
import com.itheima.health.common.R;
import com.itheima.health.common.ResultPageData;
import com.itheima.health.service.SetmealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class SetmealController {

    @Autowired
    private SetmealService  setmealService;

    /*
    * 分页查询
    * */

    @PostMapping("/setmeal/findPage")
    public ResultPageData chanxun(@RequestBody PageParam pageParam){
        ResultPageData resultPageData = setmealService.fenye(pageParam);
        return resultPageData;

    }







}
